    <a href="javascript:void(0)" class="backTop"><img src="{$_G['URL']['FCWORK_CSS']}images/backtop.png"></a>
    <div class="fixTop fixPos">
        <div class="scode"></div>
            <form action='{php echo "/".createMobileUrl('w_order',array("op2"=>"search","themeid"=>$themeid));}' method="post"> 
        <div class="searchBox">
            <input type="text" name="searchtxt" placeholder="请输入关键字">
            <button type="submit">搜索</button>
        </div>
            </form>
        <a href="" class="questionBtn"></a>
    </div>
    
    <div class="footer">
        <a href="/{php echo createMobileUrl('w_index',array('themeid'=>$themeid));}"{if $do=='index'}class="on"{/if}>首页</a>
        <a href="/{php echo createMobileUrl('w_order',array('themeid'=>$themeid));}"{if $do=='order'}class="on"{/if}>订单</a>
        <a href="/{php echo createMobileUrl('w_example',array('themeid'=>$themeid));}">发现</a>
        <a href="/{php echo createMobileUrl('w_rank',array('themeid'=>$themeid));}"{if $do=='w_rank'}class="on"{/if}>排行</a>
        <a href="/{php echo createMobileUrl('w_myreport',array('themeid'=>$themeid));}" {if $do=='myreport'}class="on"{/if}>我的</a>
    </div>
    <!-- <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> -->
    <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script>
        $(function(){
            $('.scode').click(function(){
                var appIdstr = "{$wx['appId']}";
                var timestampstr = "{$wx['timestamp']}";
                var nonceStrstr = "{$wx['nonceStr']}";
                var signaturestr = "{$wx['signature']}";
                wx.config({
                    debug: false,
                    appId: appIdstr,
                    timestamp: timestampstr,
                    nonceStr: nonceStrstr,
                    signature: signaturestr,
                    jsApiList : ['checkJsApi', 'scanQRCode']
                });
                wx.ready(function() {
                    wx.scanQRCode({   
                        needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                        scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
                        success: function (res) {

                        }
                    });
                });
                wx.error(function(res){
                    alert(res);
                    // config信息验证失败会执行error函数，如签名过期导致验证失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
                });
            });
        })
    </script>